package com.aaa.hospital.mapper;

import com.aaa.hospital.pojo.domain.Post;
import com.aaa.hospital.pojo.query.PostQuery;
import com.aaa.hospital.pojo.vo.PostVO;

import java.util.List;

/**
 * @Author: danghui
 * @Date: 2022/2/21 14:00
 * @Description: TODO
 */
public interface PostMapper {
    List<Post> queryPost(PostQuery query);

    Long queryPostTotal(PostQuery query);

    int deletePost(Integer id);

    int addPost(PostVO postVO);

    PostVO getPost(Integer id);

    int updatePost(PostVO postVO);
}
